import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        int num = 1;

        int sum = 0;

// 外层循环负责求阶乘的和

        while (num <= 5) {
            int factorResult = 1;
            int tmp = 1;
 // 里层循环负责完成求阶乘的细节.

                 while (tmp <= num) {
                   factorResult *= tmp;
                        tmp++;
                }
                    num += factorResult;
                   num++;
        }

        System.out.println("sum = " + sum);

        System.out.println("aaa");
        System.out.println("bbb");
        System.out.println("ccc");
        int score = 92;
        if(score >= 90){
            System.out.println("优秀");
        }else if(score >= 80 && score < 90){
            System.out.println("良好");
        }else if(score >= 70 && score < 80){
            System.out.println("中等");
        }else if(score >= 60 && score < 70){
            System.out.println("及格");
        }else if(score >= 0 && score < 60){
            System.out.println("不及格");
        }else{
            System.out.println("错误数据");
        }

        int day = 1;
        switch(day) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期日");
                break;
            default:
                System.out.println("输入有误");
                break;
        }

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入你的姓名：");

        String name = sc.nextLine();

        System.out.println("请输入你的年龄：");

        int age = sc.nextInt();

        System.out.println("请输入你的工资：");
        float salary = sc.nextFloat();

        System.out.println("你的信息如下：");

        System.out.println("姓名: "+name+"\n"+"年龄："+age+"\n"+"工资："+salary);

        sc.close(); // 注意, 要记得调用关闭方法
    }
}